﻿<k:KinectWindow
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:k="clr-namespace:Kinect.Framework.Controls;assembly=Kinect.Framework"
        xmlns:kap="clr-namespace:Kinect.Framework.AttachProperties;assembly=Kinect.Framework"
        xmlns:ec="clr-namespace:Microsoft.Expression.Controls;assembly=Microsoft.Expression.Controls"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="Kinect.ShowCase.MainWindow"
        Background="White"
        WindowState="Maximized"
        Title="MainWindow" Height="600" Width="800">
    <Grid x:Name="LayoutRoot">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="150"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>            
            <StackPanel Grid.Column="0">
                <k:KinectButton Margin="0,20,0,0" k:KinectManipulation.IsSelectable="True" k:KinectManipulation.Click="OnShowGestureViewClick">
                    <k:KinectButton.Content>
                        <Grid Width="150" Height="100" Background="Gray">
                            <TextBlock Text="Gesture sample" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                    </k:KinectButton.Content>
                </k:KinectButton>
                <k:KinectButton Margin="0,20,0,0" k:KinectManipulation.IsSelectable="True" k:KinectManipulation.Click="OnKinectListBoxViewClick">
                    <k:KinectButton.Content>
                        <Grid Width="150" Height="100" Background="Gray">
                            <TextBlock Text="KinectListbox sample" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                    </k:KinectButton.Content>
                </k:KinectButton>
                <k:KinectButton Margin="0,20,0,0" k:KinectManipulation.IsSelectable="True" k:KinectManipulation.Click="OnKinectButtonViewClick">
                    <k:KinectButton.Content>
                        <Grid Width="150" Height="100" Background="Gray">
                            <TextBlock Text="KinectButton sample" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                    </k:KinectButton.Content>
                </k:KinectButton>
                <k:KinectButton Margin="0,20,0,0" k:KinectManipulation.IsSelectable="True" k:KinectManipulation.Click="OnKinectScrollViewerViewClick">
                    <k:KinectButton.Content>
                        <Grid Width="150" Height="100" Background="Gray">
                            <TextBlock Text="KinectScrollViewer sample" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                    </k:KinectButton.Content>
                </k:KinectButton>
                <k:KinectButton Margin="0,20,0,0" k:KinectManipulation.IsSelectable="True" k:KinectManipulation.Click="OnKinectContextMenuViewClick">
                    <k:KinectButton.Content>
                        <Grid Width="150" Height="100" Background="Gray">
                            <TextBlock Text="KinectContextMenu sample" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                    </k:KinectButton.Content>
                </k:KinectButton>
            </StackPanel>
            <Grid Grid.Column="1">
                <ContentControl x:Name="View"/>
            </Grid>
        </Grid>

        <!--<k:KinectButton 
            
            k:KinectManipulation.IsSelectable="True" 
            k:KinectManipulation.Click="KinectButton_Click"
            Background="Blue" 
            Width="250" 
            Height="350">
            <k:KinectButton.Content>
                <Grid Background="Blue" Width="Auto" Height="Auto">
                    <TextBlock Text="ddddddddddddd"/>    
                </Grid>                
            </k:KinectButton.Content>
        </k:KinectButton>-->
        <!--<k:KinectListBox ScrollOnWindow="True"  x:Name="MyListBox" ScrollingZone="0.2" AnimationDuration="200" Width="300" BorderBrush="Black" BorderThickness="1" />-->
        <!--<k:KinectScrollViewer AnimationDuration="200" ScrollDistance="100" ScrollingZone="0.1">
            <StackPanel>
                <Rectangle Width="200" Height="250" Fill="Green"/>
                <k:KinectButton Content="test" Background="Aqua" Width="100" Height="100"/>
                <Rectangle Width="100" Height="250" Fill="Green"/>
                <Rectangle Width="150" Height="250" Fill="Green"/>
                <k:KinectButton Content="test" Background="Aqua" Width="100" Height="100"/>
                <Rectangle Width="100" Height="150" Fill="Green"/>
                <Rectangle Width="200" Height="250" Fill="Green"/>
                <k:KinectButton Content="test" Background="Aqua" Width="100" Height="100"/>
                <Rectangle Width="100" Height="250" Fill="Green"/>
                <Rectangle Width="150" Height="250" Fill="Green"/>
                <k:KinectButton Content="test" Background="Aqua" Width="100" Height="100"/>
                <Rectangle Width="100" Height="150" Fill="Green"/>
            </StackPanel>
        </k:KinectScrollViewer>-->
        <!--<TextBlock Text="" x:Name="ManipulationDebug" FontSize="40" HorizontalAlignment="Left" VerticalAlignment="Top"/>-->


        <k:KinectContextMenu x:Name="ContextMenu" Radius="150" IsEnabled="False">
            <k:KinectContextMenu.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Ellipse Fill="Gray" Width="70" Height="70"/>
                        <TextBlock Text="{Binding}" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </DataTemplate>
            </k:KinectContextMenu.ItemTemplate>
        </k:KinectContextMenu>
    </Grid>
</k:KinectWindow>
